package com.sixth.dao;

import com.sixth.entity.AclUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface AclUserDao {
    int deleteByPrimaryKey(String id);

    int insert(AclUser record);

    int insertSelective(AclUser record);

    AclUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(AclUser record);

    int updateByPrimaryKey(AclUser record);


    List<AclUser> getUserByPage(@Param("username") String username,@Param("startTime") String startTime,@Param("editTime") String editTime);

    //编辑角色
    int updateUserByUser(@Param("username") String username,@Param("nickName") String nickName,@Param("id")String id,@Param("gmtModified")Date gmtModified );

    //删除
    int deleteUserById(String id);

    //修改状态
    int updateUserStatusByid(@Param("deleted") String deleted,@Param("id") String id);

    int selectcount();

    int addUserByUser(AclUser user);
}